import { createApp } from 'vue'
import App from './App.vue'
// 引入路由
import router from './router'
// pinia
import pinia from './store'
// qiankun
import { registerMicroApps } from 'qiankun'
const instance = createApp(App)
instance.use(router)
instance.use(pinia)
instance.mount('#app')
// qiankun 引入子应用
registerMicroApps([
  {
    name: 'childOne',
    entry: import.meta.env.VITE_CHILDONE_URL,
    container: '#container',
    activeRule: '#/base/child/one',
    // loader:(loading) => render(loading),
    props: {
      token: 'sub-application-001'
    }
  }
])
